package com.itheima.service;

import com.itheima.bean.User;

public interface UserService {



    /**
     * 根据手机号来查询用户
     * @param phone
     * @return
     */
    User findUserByPhone(String phone);


    /**
     * 添加用户
     * @param user
     * @return
     */
    int add(User user) ;


    /**
     * 根据用户id来查询用户数据
     * @param uid
     * @return
     */
    User findByUid(long uid);
}
